<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
	    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	    <title>绑定支付宝</title>
	    <script type="text/javascript" src="../../js/mui.min.js"></script> 
	    <script type="text/javascript" src="../../js/common.js"></script>
	    <link rel="stylesheet" type="text/css" href="../../css/mui.min.css"/>
	    <link rel="stylesheet" href="../../css/own.css" />
	    <link rel="stylesheet" href="../../css/recharge.css" />
	    <script src="../../js/jquery-1.11.3.js"></script>
	    <script type="text/javascript" src="../../js/pingpp.js" ></script>
	    <style>
	    	.mui-table-view {
	    		font-size: 14px;
	    	}
	    	.mui-table-view label{
	    		color:#666666 ;
	    	}
	    	.mui-table-view span{
	    		color:#2B2B2B ;
	    	}
	    </style>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav own-topbg">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" id="back"><i>返回</i></a>
			<h1 class="mui-title">支付宝支付</h1>		
			<a href="javascript:void(0)" class="top-tel" id="online">在线客服</a>
		</header>
		<div class="mui-content">
			
		</div>
	</body>
	<script>
		tzdr.online();
		mui.plusReady(function(){
			tzdr.init.initHearListener();
			var wv = plus.webview.currentWebview();
			mui.app_request('/user/pay/FCPay', {
				"gopayWay": "alipay",
				"goPaymoney":wv.money
			}, function(result) {
				if(result.code ==1) {
					var data = result.data;
					plus.nativeUI.showWaiting( "正在跳转..." );
					setTimeout(function(){
						plus.nativeUI.closeWaiting();
					},2000);
					var w = plus.webview.create("fcpay.html","fcpay",{top:"45px"},{data:result});
					w.show();
					return;
				}
			}, function(result) {
				if(result.code == 5) {
					mui.toast("充值订单提交失败了,请稍后再试！");
					return;
				} else if(result.code == 6) {
					mui.toast("抱歉，现在已不能使用此支付！");
					return;
				} else {
					mui.toast("系统繁忙，请稍后再试！");
					return;
				}
			})
		})
	</script>
</html>
